package com.other;

import java.util.HashMap;
import java.util.Map;

import com.sun.org.apache.bcel.internal.generic.NEW;

class Person<T1,T2>{
	T1 mark;
	T2 age;	
	public Person(T1 mark,T2 age){
		this.mark = mark;
		this.age = age;
	}
	
	public String toString(){
		return mark+","+age;
	}
}
public class TestGeneric{
	public static void main(String[] args){
		Person<String, Integer> p = new Person<String,Integer> ("whz",29);
		System.out.println(p);
	} 	
}

class Person2<A1,A2>{
	A1 a1;
	A2 a2;
	public Person2(A1 a1, A2 a2){
		
	}
}
class FinalTest{
	final Map map=new HashMap();
	final int i=0;
	final Integer a=new Integer(8);
	public static void main(String[] args) {
		FinalTest ft=new FinalTest();
		//ft.i=5;
		ft.map.put(null, "KK");
		ft.map.put(1, 2);
		//ft.a=new Integer(4);
		System.out.println(ft.map.get(null));
		System.out.println(ft.map.get(1));
	}
}